package com.situ.tos2024.service.impl;

import com.situ.tos2024.dao.AdminUserDAO;
import com.situ.tos2024.model.AdminUser;
import com.situ.tos2024.service.AdminUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 功能：
 *
 * @author 千堆雪
 * @version 1.0.0
 * @since 2024/1/3
 * <p>
 * created by 千堆雪 on 2024/1/3, last modified by 千堆雪 on 2024/1/3
 */
@Service
public class AdminUserServiceImpl implements AdminUserService {
    private AdminUserDAO userDAO;

    @Autowired
    public void setUserDAO(AdminUserDAO userDAO) {
        this.userDAO = userDAO;
    }

    @Override
    public AdminUser findByUsername(String username) {
        return userDAO.findByUsername(username);
    }
}
